package com.donzell.joinmodel;

import java.util.Date;

/**
 * EcsAdminUser entity. @author MyEclipse Persistence Tools
 */
public class AdminUser implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	// Fields

	/**
	 * 
	 */
	private Short userId;
	private String userName;
	private String email;
	private String phone;
	private Date addTime;
	private Date lastLogin;
	private String lastIp;
	private String roleName;
	private Short isUse;

	// Constructors

	/** default constructor */
	public AdminUser() {
		
	}

	/** minimal constructor */
	public AdminUser(Short userId,String userName, String email, String phone, Date addTime, Date lastLogin,String lastIp,String roleName,Short isUse ) {
		this.userId = userId;
		this.userName = userName;
		this.email = email;
		this.phone = phone;
		System.err.println("时间==>"+addTime);
		this.addTime = addTime;
		this.lastLogin = lastLogin;
		
//		this.addTime = DateHelper.parseString(addTime, null);
//		this.lastLogin = DateHelper.parseString(lastLogin, null);
		
		this.lastIp = lastIp;
		this.roleName = roleName;
		this.isUse = isUse;
	}

	
	// Property accessors

	public Short getUserId() {
		return userId;
	}

	public void setUserId(Short userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}


	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Date getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	public String getLastIp() {
		return lastIp;
	}

	public void setLastIp(String lastIp) {
		this.lastIp = lastIp;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Short getIsUse() {
		return isUse;
	}

	public void setIsUse(Short isUse) {
		this.isUse = isUse;
	}
}